package com.editor.smsmanager;

import com.editor.smsmanager.utils.MyLog;

import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;

import java.net.URI;

public class SpdSocketClient extends WebSocketClient {
    public static String TAG = SpdServer.TAG;

    public SpdSocketClient(URI serverUri) {
        super(serverUri);
    }

    @Override
    public void onOpen(ServerHandshake handshakedata) {
        MyLog.D(TAG,"SpdSocketClient onOpen");
    }

    @Override
    public void onMessage(String message) {
        MyLog.D(TAG,"SpdSocketClient onMessage:"+message);
    }

    @Override
    public void onClose(int code, String reason, boolean remote) {
        MyLog.D(TAG,"onClose reason:"+reason);
    }

    @Override
    public void onError(Exception ex) {
        MyLog.D(TAG,"onError ex:"+ex);
    }
}
